<?php
require("config/config.php");
require("common.php");
$mysql = new SaeMysql();
 
$bid= strip_tags( $_REQUEST['bid'] );
$max= strip_tags( $_REQUEST['max'] );
 
if(is_numeric($bid) && is_numeric($max)){
	$sql = "SELECT comment.*, user.nake FROM `comment`,`user` WHERE comment.uid=user.uid AND bid = " .$bid . " AND cid > ". $max . " ORDER BY cid LIMIT ".GET_MAX_COUNT;
	$reply = $mysql->getData( $sql );
	if( $mysql->errno() != 0 )
	{
		echo "false";
	}else{
		echo myjson($reply );
	}
}else{
 	echo "false";
}
$mysql->closeDb();
?>
